<?php
class Util_ApioAuth{
	public static function  get_user_info_by_api($code){
    		$data=array('auth'=>md5(md5($code).'ajkzwww'),'keyword'=>$code,'columns'=>'code');
    		$kq_url=APF::get_instance()->get_config('kq');
    		$ch = curl_init();
    		curl_setopt($ch, CURLOPT_URL, $kq_url.$data);
    		curl_setopt($ch, CURLOPT_POST, TRUE);
    		curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    		curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    		return curl_exec($ch);
	}
}